{extend name="adminheader:header"/}
{block name="content"}
    <body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>修改申请专柜信息</h5>
                    </div>
                    <div class="ibox-content">
                        <form action="{:url('/admin/Counters/editPost')}" method="post" class="form-horizontal js-ajax-form m-t">
                            <input type="hidden" name="id" value="{$list.id}" />
                            <div class="form-group">
                                <label class="col-sm-3 control-label">申请人姓名<span class="form-required">*</span></label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" value="{$list.c_name}" placeholder="请输入申请人姓名" disabled="disabled" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">申请人身份证号<span class="form-required">*</span></label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" value="{$list.c_card}" placeholder="请输入申请人身份证号" disabled="disabled" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">申请人手机号码<span class="form-required">*</span></label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" value="{$list.c_tel}" placeholder="请输入手机号码" disabled="disabled" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">申请人联系地址</label>
                                <div class="col-md-6 col-sm-10">
                                    <textarea class="form-control" placeholder="请填写店铺地址" disabled="disabled">{$list.c_address}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">实体店营业执照<span class="form-required">*</span></label>
                                <div class="col-md-6 col-sm-10">
                                    <ul id="photos" class="pic-list list-unstyled form-inline">
                                        {notempty name="post.photos"}
                                            {foreach name="post.photos" item="vo"}
                                                {php}$img_url=getPreviewUrl($vo['url']);{/php}
                                                <li id="saved-image{$key}">
                                                    <input id="photo-{$key}" type="hidden"
                                                           value="{$vo.url}" disabled="disabled" />
                                                    <input class="form-control" id="photo-{$key}-name" type="text" value="{$vo.name|default=''}" style="width: 200px;" title="图片名称" disabled="disabled" />
                                                    <img id="photo-{$key}-preview"
                                                         src="{:getPreviewUrl($vo['url'])}"
                                                         style="height:50px;width: 50px;cursor: pointer;"
                                                         onclick="imagePreviewDialog(this.src);">
                                                </li>
                                            {/foreach}
                                        {/notempty}
                                    </ul>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">状态<span class="form-required">*</span></label>
                                <div class="col-md-6 col-sm-10">
                                   <input type="radio" name="c_status" id="inlineRadio1" value="1" {$list.c_status == 1 ? 'checked':''} style="cursor: pointer;margin-right:5px"/>未审核&nbsp;&nbsp;&nbsp;&nbsp;
                                   <input type="radio" name="c_status" id="inlineRadio2" value="2" {$list.c_status == 2 ? 'checked':''} style="cursor: pointer;margin-right:5px"/>审核通过&nbsp;&nbsp;&nbsp;&nbsp;
                                   <input type="radio" name="c_status" id="inlineRadio3" value="3" {$list.c_status == 3 ? 'checked':''} style="cursor: pointer;margin-right:5px"/>不合格
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">申请时间<span class="form-required">*</span></label>
                                <div class="col-md-6 col-sm-10">
                                    <input class="form-control js-bootstrap-datetime" type="text" disabled="disabled" value="{:date('Y-m-d H:i',$list['addtime'])}">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-3">
                                    <button class="btn btn-primary js-ajax-submit" type="submit">保存</button>
                                    <a class="btn btn-default" href="{:url('/admin/Counters/index')}">返回</a>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<script src="/admin/js/admin.js"></script>
<script type="text/javascript">
    $(function () {

        $('.btn-cancel-thumbnail').click(function () {
            $('#thumbnail-preview').attr('src', '/static/img/default-thumbnail.png');
            $('#thumbnail').val('');
        });

    });
</script>
{/block}